package com.learn;

public class Thread003 {


    public static void main(String[] args){
        System.out.println("主线程启动");
        new Thread(new Runnable() {
            public void run() {
                System.out.println("子线程启动");
                for (int i = 0; i < 10; i++) {
                    System.out.println("i:"+i);
                }
                System.out.println("子线程结束");
            }
        }){
        }.start(
        );
        System.out.println("主线程结束");
    }
}
